package com.sky.service;

import com.sky.dto.DishDTO;
import com.sky.dto.DishPageQueryDTO;
import com.sky.entity.Dish;
import com.sky.result.PageResult;
import com.sky.vo.DishVO;

import java.util.List;

public interface Dishservice {
    public void save(DishDTO dishdto);

    public PageResult selectbypage(DishPageQueryDTO dishPageQueryDTO);

    public DishVO selectbyid(Long id);
    public void updatedish(DishDTO dishdto);
    public void startandstop(Integer stats,Long id);
    public void delteBatch(List<Long> ids);

    /**
     * 条件查询菜品和口味
     * @param dish
     * @return
     */
    List<DishVO> listWithFlavor(Dish dish);
}
